The only way to change a partition size using fdisk is by deleting and recreating the partition. Important The partition you are resizing must be the last ...
The safest way to do this is to boot using an emergency medium (a live CD or the like) and use GParted, which will resize both the partition and the filesystem ...
Use the fdisk command to extend the partition. Run the fdisk -u command to open the partition table for the disk in sector mode. -bash-4.1# fdisk -u /dev/sdc.
Run the following command and use an option p to double check a partition: sudo fdisk /dev/vda Enter d to delete a /dev/vda2 partition; pick a partition number.